﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IHISCETeim.DAL;
using IHISCETeim.Model;
using IHISCETeim.Library;
using System.Data;
using IHISCETeim.Web;
namespace IHISCETeim.BLL
{
    public class AgentMainFaultControlller
    {
        public static int Add(AgentMainFaultInfo obj)
        {
            return AgentMainFaultDAL.Add(obj);
        }
        public static bool Delete(int ID)
        {
            return AgentMainFaultDAL.Delete(ID);
        }
        public static DataTable GetAllByParId(int ParId)
        {
            return AgentMainFaultDAL.GetAllByParId(ParId);
        }
        public static bool Update(AgentMainFaultInfo obj)
        {
            return AgentMainFaultDAL.Update(obj);
        }

        public static AgentMainFaultInfo GetById(int ID)
        {
            AgentMainFaultInfo obj=CBO.FillObject<AgentMainFaultInfo>(AgentMainFaultDAL.GetById(ID));
            if (obj == null)
                obj = new AgentMainFaultInfo();
            return obj;
        }

    }
}
